/*
 * test_newsave.cpp
 *
 *  Created on: Feb 18, 2014
 *      Author: killerg
 */


#include "objmgr_deps.h"
#include "objmgr.h"

// db --------------------------------------------------------------
db_mgr_t g_db;
savemgr_t g_savemgr;


/*
 * 创建对象
 * 加载对象
 * 修改对象
 * 关机
 * 初始化
 */



// obj --------------------------------------------------------------
bool test_newsave() {
	assert(g_db.init("uc", "", "", "default"));
	assert(g_savemgr.init());

	while (true) {


		g_savemgr.update();
		g_db.update();
	}

	g_savemgr.destroy();
	g_db.destroy();

	return true;
}
